package com.ideafactory.client.ybservice;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import java.util.List;

/**
 * Created by LiuShao on 2016/5/24.
 */
public class MyFrageStatePagerAdapter extends FragmentStatePagerAdapter{

    private List<YbBaseFragment> fragmentList;

    public void setFragmentList(List<YbBaseFragment> fragmentList){
        this.fragmentList = fragmentList;
    }

    public MyFrageStatePagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        return fragmentList.get(position);
    }

    @Override
    public int getCount() {
        return fragmentList.size();
    }


}
